<%@ page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html>
<html>
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>登录</title>
</head>
<body> 
	<form id="frm" action="<%=request.getContextPath()%>/lgc/register"  method="POST">
	    <br><span id="errSpan" style="color:red"></span>
		<br><br>账号:<input type="text" name="account" value="">  
		<br><br>密码:<input type="password" name="pwd" value="">  
		<br><br><input type="submit"  value="注册"  > 
   
		  
	</form>
</body>
 
 
<script> 
/** 
 * 以下JS为了显示登录错误信息
 */
function GetQueryString(name)
{
     var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
     var r = window.location.search.substr(1).match(reg);
     if(r!=null)return  unescape(r[2]); return null;
}

var errInfo=GetQueryString("errInfo");
if (errInfo!=null && errInfo!=""){
	document.getElementById("errSpan").innerHTML=errInfo;
}
</script>
</html>